import logo from './logo.svg'; //警告没有使用
import './App.css';
import React ,{Component, lazy, Suspense}from 'react'

import {
  BrowserRouter as Router,
  Switch,
  Route,
  Link
} from "react-router-dom";

import Login  from './page/login';
import home  from './page/home';

// import { menuData } from "./router/router";

class App extends React.Component{
  render() {
    // const list = menuData.map(x => <Route key={x.path} path={x.path} component={x.component} />)
    // console.log(list)
    return (

      <div className="App">
        <header className="App-header">
          <Router>
            <Switch>
              
              <Route path="/" exact component={Login} />
              <Route path="/home" exact component={home} />
            

            </Switch>
          </Router>
        </header>
      </div>

    );

  }
}




export default (App);
